import http from "../util/http";

const api = {
  login: "/api/login",
  logout: "/api/logout",
};

const methods = {
  login: (params) => {
    return http.post(api.login, params);
  },
  logout: (params) => {
    return http.post(api.logout, params);
  },
};

export default {
  api,
  ...methods,
};
